<template>
<!-- 提交订单 -->
  <div class="myOrder">
    <Header title="我的订单" background="#fff"/>
    <div class="content">
          <van-tabs v-model="activeName" sticky>
            <van-tab title="全部订单" name="a">
                <div class="order">
                  <div class="state">待付款</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                      <van-button class="active" block type="info" @click="">去付款</van-button>
                      <van-button class="" block type="info" @click="">取消订单</van-button>
                  </div>
                </div>
                <div class="order">
                  <div class="state">已完成</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                </div>
                <div class="order">
                  <div class="state">已取消</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                    <van-button class="" block type="info" @click="">删除订单</van-button>
                  </div>
                </div>
                <div class="order">
                  <div class="state">已取消</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                    <van-button class="" block type="info" @click="">删除订单</van-button>
                  </div>
                </div>
                <div class="order">
                  <div class="state">已取消</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                    <van-button class="" block type="info" @click="">删除订单</van-button>
                  </div>
                </div>
                <div class="order">
                  <div class="state">已取消</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                    <van-button class="" block type="info" @click="">删除订单</van-button>
                  </div>
                </div>
                <p class="btm">我已经到底了～</p>
            </van-tab>
            <van-tab title="待付款" name="b">
               <div class="order">
                  <div class="state">待付款</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                      <van-button class="active" block type="info" @click="">去付款</van-button>
                      <van-button class="" block type="info" @click="">取消订单</van-button>
                  </div>
                </div>
            </van-tab>
            <van-tab title="已完成" name="c">
                <div class="order">
                  <div class="state">已取消</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                    <van-button class="" block type="info" @click="">删除订单</van-button>
                  </div>
                </div>      
            </van-tab>
            <van-tab title="已取消" name="d">
                <div class="order">
                  <div class="state">已取消</div>
                  <div class="name">元宇宙国际拍卖有限公司</div>
                  <div class="con">
                    <div class="left"></div>
                    <div class="right">
                      <div class="tit">TRON #3378</div>
                      <div class="price">¥ 19.90</div>
                    </div>
                  </div>
                  <div class="operation">
                    <van-button class="" block type="info" @click="">删除订单</van-button>
                  </div>
                </div>
            </van-tab>
          </van-tabs>

   


    </div>
  </div>
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
export default {
  name: 'myOrder',
  computed: { ...mapGetters({ pageData: 'pageData'}) },
  data () {
    return {
      activeName: 'a'
    }
  },
  methods: {
    subClick() {
      this.$router.push({name: 'toPaid'})
    }
  },
  mounted() {

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scope>
.myOrder {
  width: 100%;
  padding-bottom: 20px;
  padding-top: 40px;
  box-sizing: border-box;
  .content {
    width: 100%;
    padding: 0 8px;
    padding-top: 50px;
    box-sizing: border-box;
    .order {
      position: relative;
      width: 100%;
      background-color: #fff;
      background: #FFFFFF;
      box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding-left: 8px;
      box-sizing: border-box;
      margin-bottom: 10px;
      .state {
        right: 14px;
        top: 8px;
        position: absolute;
        width: 50px;
        height: 24px;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #B786BF;
        text-align: right;
      }
      .name {
        width: 100%;
        // padding: 4px 0;
        // line-height: 1;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #666666;
        height: 32px;
        line-height: 32px;
      }
      .con {
        width: 100%;
        height: 64px;
        .left {
          float: left;
          width: 54px;
          height: 54px;
          background: brown;
        }
        .right {
          float: left;
          padding-left: 8px;
          height: 54px;
          .tit {
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #333333;
            height: 30px;
            line-height: 30px;
          }
          .price {
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #6B00F0;
            height: 24px;
            line-height: 24px;
            background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
          }
        }
      }
      .operation {
        height: 40px;
        width: 100%;
        .van-button {
          float: right;
          width: 78px;
          height: 28px;
          background: transparent;
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #999999;
          margin-right: 8px;
          border-radius: 20px;
          border: 1px solid #CCCCCC;
          padding-right: 0;
          padding-left: 0;
        }
        .van-button.active {
          color: #6B00F0;
          line-height: 30px;
          background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          border: 1px solid rgba(154, 127, 207, 1);
        }
      }
    }
  }
  .van-sticky {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 99;
    top: 40px;
    width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
    background: #F9FBFC;
  }
}
</style>
